import { path } from "../../config/path";
import request from './request';

/** 设备绑定记录列表 GET /manage/bioland/get_bioland_list */
export async function get_bioland_list(body?: any, options?: any) {
    return request(path + '/manage/bioland/get_bioland_list', {
        method: 'GET',
        headers: {
            Authorization: localStorage.loginToken,
        },
        params: body,
        ...(options || {}),
    });
}
/** 新增/编辑绑定设备 POST /manage/bioland/add_edit_bioland */
export async function add_edit_bioland(body?: any, options?: any) {
    return request(path + '/manage/bioland/add_edit_bioland', {
        method: 'POST',
        headers: {
            Authorization: localStorage.loginToken,
        },
        data: body,
        ...(options || {}),
    });
}
/** 绑定设备详情 GET /manage/bioland/get_bioland_info */
export async function get_bioland_info(body?: any, options?: any) {
    return request(path + '/manage/bioland/get_bioland_info', {
        method: 'GET',
        headers: {
            Authorization: localStorage.loginToken,
        },
        params: body,
        ...(options || {}),
    });
}
/** 删除绑定设备 POST /manage/bioland/delete_bioland */
export async function delete_bioland(body?: any, options?: any) {
    return request(path + '/manage/bioland/delete_bioland', {
        method: 'POST',
        headers: {
            Authorization: localStorage.loginToken,
        },
        data: body,
        ...(options || {}),
    });
}
/** 监护设备列表 GET /manage/sickbed/get_lonbon_list */
export async function get_lonbon_list(body?: any, options?: any) {
    return request(path + '/manage/sickbed/get_lonbon_list', {
        method: 'GET',
        headers: {
            Authorization: localStorage.loginToken,
        },
        params: body,
        ...(options || {}),
    });
}
/** 新增监护设备 POST /manage/sickbed/add_edit_lonbon */
export async function add_edit_lonbon(body?: any, options?: any) {
    return request(path + '/manage/sickbed/add_edit_lonbon', {
        method: 'POST',
        headers: {
            Authorization: localStorage.loginToken,
        },
        data: body,
        ...(options || {}),
    });
}
/** 病床列表下拉框 GET /manage/sickbed/get_sickbed_select */
export async function get_sickbed_select(body?: any, options?: any) {
    return request(path + '/manage/sickbed/get_sickbed_select', {
        method: 'GET',
        headers: {
            Authorization: localStorage.loginToken,
        },
        params: body,
        ...(options || {}),
    });
}
/** 监护设备详情 GET /manage/sickbed/get_lonbon_info */
export async function get_lonbon_info(body?: any, options?: any) {
    return request(path + '/manage/sickbed/get_lonbon_info', {
        method: 'GET',
        headers: {
            Authorization: localStorage.loginToken,
        },
        params: body,
        ...(options || {}),
    });
}
/** 删除监护设备 POST /manage/sickbed/delete_lonbon */
export async function delete_lonbon(body?: any, options?: any) {
    return request(path + '/manage/sickbed/delete_lonbon', {
        method: 'POST',
        headers: {
            Authorization: localStorage.loginToken,
        },
        data: body,
        ...(options || {}),
    });
}